// --------------------------------------------------------------------------------------------------------------------
// <copyright file="TagTokenConverter.cs" company="GT">
//   Gunther Taborga
// </copyright>
// <summary>
//   Defines the TagTokenConverter type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

// TODO refactored=false
namespace BatchID3.Editor.Converters
{
    using System;
    using System.Globalization;
    using System.Windows.Data;

    using BatchID3.Enumerations;
    using BatchID3.Extensions;

    public class TagTokenConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return ((TagToken)value).GetFirstStringValue();
        }

        // TODO implement converting back into a tag token from a string
        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}